import { EntityObjectFactory } from './../entityObjectFactory';
var EntityObject = EntityObjectFactory.GetEntityObjectType();

export class TableFeeRule extends EntityObject<TableFeeRule>{
    constructor(ctx?) { super(ctx); }
    id: string = null;
    //规则编号
    name: string = null;
    //规则名称
    inventoryId: string = null;
    //规则对应商品
    feeRuleContent: FeeRuleContent[] = [];
    //规则内容
    min: number = null;
    //规则最小费用
    max: number = null;
    //规则最大费用
    toString(): string { return "tableFeeRules"; }
}

interface FeeRuleContent {
    period: string;
    feeMode: string;
    price: number;
    time: number;
}